package com.robot.base.utils;

import androidx.recyclerview.widget.GridLayoutManager;
import androidx.recyclerview.widget.LinearLayoutManager;

import com.robot.base.GlApp;

/**
 * 创建日期：2020/11/2  11:29
 * 类说明:
 *
 * @author：robot
 */
public class LayoutManagers {


    public static LinearLayoutManager line() {
        return new LinearLayoutManager(GlApp.getContext());
    }

    public static LinearLayoutManager horizontal() {
        return new LinearLayoutManager(GlApp.getContext(), LinearLayoutManager.HORIZONTAL, false);
    }

    public static GridLayoutManager grid(int num) {
        return new GridLayoutManager(GlApp.getContext(), num);
    }
}
